package com.flyme.module.base.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.flyme.common.core.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 资源授权表
 *
 * @author zyf
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@TableName("sys_authority")
public class SysAuthority extends BaseEntity {


    /**
     * 请求路径
     */
    private String path;

    /**
     * 资源ID
     */

    private Long resourceId;

    /**
     * 资源父级节点,默认为0
     */

    private Long resourcePid;

    /**
     * 资源类型:api,menu,action
     */
    private String resourceType;


    /**
     * 服务ID
     */
    private String serviceId;
    /**
     * 授权权限所有者ID
     */
    private String authorityOwner;

    /**
     * 权限标识
     */
    private String authority;
    /**
     * 状态:0:无效 1:有效
     */
    private Integer status;

    /**
     * 权限前缀:用户(USER_) 、角色(ROLE_)、APP(APP_)
     */
    private String authorityPrefix;
    /**
     * url前缀(/,http://)
     */
    private String urlPrefix;

}
